/**
 * 
 */
package com.java.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.java.entity.Order;
import com.java.mapper.OrderMapper;
import com.java.mapper.PaymentMapper;
import com.java.service.OrderService;

/**
* @author Kidney
* 创建时间：2019年2月24日 下午5:37:50
* Description:
*/
/**
 * @author KIDNEY
 *
 */

@Service("OrderServiceImpl")
public class OrderServiceImpl implements OrderService{

	
	@Autowired
	private OrderMapper om;
	/* (non-Javadoc)
	 * @see com.java.service.OrderService#selectByPayment(java.lang.Integer)
	 */
	@Override
	public List<Order> selectByPayment(Integer paymentId) {
		// TODO Auto-generated method stub
		return om.selectByPaymentId(paymentId);
	}

	/* (non-Javadoc)
	 * @see com.java.service.OrderService#insert(com.java.entity.Order)
	 */
	@Override
	public int insert(Order record) {
		// TODO Auto-generated method stub
		return om.insertSelective(record);
	}

	@Override
	public Order selectByPrimary(Integer id) {
		// TODO Auto-generated method stub
		return om.selectByPrimaryKey(id);
	}
	
	
	
	
	

}
